package com.lovelyj.trip_by_train.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lovelyj.trip_by_train.dto.DailyTrainDto;
import com.lovelyj.trip_by_train.entity.DailyTrain;

import java.time.LocalDate;
import java.util.List;


public interface DailyTrainService extends IService<DailyTrain> {

    public Page<DailyTrainDto> selectDailyTrainDtoList(Integer page, LocalDate date, String trainNum, String startStation, String endStation);

    public void saveWithSeatAndTickets(DailyTrain dailyTrain);

    public void removeWithSeatAndTickets(Long id);

}
